import requests
import json

url = "http://kdtx-test.itheima.net/api/login"

payload = json.dumps({
   "username": "admin",
   "password": "HM_2023_test",
   "code": "2",
   "uuid": "d5d910a59b79420bbe421ae9f0eee8d4"
})
headers = {
   'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

